package com.qining618.cms.ucenter.mapper;

import com.qining618.cms.ucenter.domain.Token;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;
import org.springframework.stereotype.Repository;

/**
 * <p>
 * 登录凭证管理 Mapper 接口
 * </p>
 *
 * @author qining
 * @date 2019-09-16
 */
@Mapper
@Repository
public interface TokenMapper extends BaseMapper<Token> {

    @Select("select * from o_token where access_token = #{token}")
    Token findByToken(@Param("token") String token);

}
